{block content}
<h1>Účet - osobní údaje</h1>
{var $userData = $user->getIdentity()->data}
<div id="profile-left">
    <img id="profile-picture" src="{$basePath}/{$userData["picture"]}" alt="fotka uzivatele" /><br />
    <a href="{link zmenaFotky}" class="button">Změnit fotku</a>
</div>
<div id="profile-right">
    <table>
        <tr>
            <th>Titul</th>
            <td>{$userData["degree"]}</td>
        </tr>
        <tr>
            <th>Jméno</th>
            <td>{$userData["firstname"]}</td>
        </tr>
        <tr>
            <th>Přijmení</th>
            <td>{$userData["lastname"]}</td>
        </tr>        
        <tr>
            <th>Telefon</th>
            <td>{$userData["phone"]}</td>
        </tr>
        <tr>
            <th>E-mail</th>
            <td>{$userData["email"]}</td>
        </tr>
        <tr>
            <th>Role</th>
            <td>{$userData["role"]}</td>
        </tr>
        <tr>
            <th>Počet nabídek</th>
            <td>{$offersCount->count()}</td>
        </tr>
        <tr>
            <th>Počet referencí</th>
            <td>{$referenceCount->count()}</td>
        </tr>
    </table>    
    <a href="{link zmenaHesla}" class="button">Změnit heslo</a>
</div>
{/block}
